import express from "express";
import { Customer } from "../controller/customer.js";
const router = express.Router();

//增加用户
router.post("/customer/add", Customer.addCustomer);

// 单删
router.post("/customer/del", Customer.delCustomer);
// 批量删除
router.post("/customer/delSelect", Customer.delSelectCustomer)

//更新用户
router.post("/customer/update", Customer.updateCustomer);

//根据id查询用户
router.post("/customer/getone", Customer.getDail);

//分页查询
router.post("/customer/getList", Customer.getCustomerList);


export default router;
